Skip to content

chore: keep uv.lock in sync automatically - #248

Merged
goloroden merged 1 commit into
mainfrom
chore/dependabot-uv-ecosystem
Aug 1, 2026
Merged

chore: keep uv.lock in sync automatically#248
goloroden merged 1 commit into
mainfrom
chore/dependabot-uv-ecosystem

Conversation

@goloroden

Copy link
Copy Markdown
Member

uv.lock kept drifting behind pyproject.toml, so it had to be refreshed by hand in three of the four dependency PRs merged today. There are two independent causes:

1. Dependabot ran as the pip ecosystem. That ecosystem only understands pyproject.toml and never touches uv.lock — which is why #243, #245 and #247 landed with a stale lockfile. Dependabot has supported uv natively since March 2025; it reads and updates both files together. The group names were renamed pip-*uv-* to match.

2. The release workflow bumped the version without re-locking. It rewrites version in pyproject.toml via sed and commits only that file. After the 1.9.1 release, uv.lock still declared version = "1.9.0" for the project itself. It now runs uv lock and commits the result alongside.

Guard against regressions. make qa gained a verify-lock step running uv lock --check, so any future drift turns the build red instead of going unnoticed — no matter whether it comes from Dependabot, the release pipeline or a manual edit.

Verified locally: make verify-lock fails on a deliberately introduced drift and passes on the refreshed lockfile.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F3ADPwk11GHQF7BBwQHaPz

uv.lock kept drifting behind pyproject.toml because nothing updated the
two together. There were two sources for that:

- Dependabot ran as the `pip` ecosystem, which only knows pyproject.toml.
  Switching to the `uv` ecosystem makes it maintain both files in one PR.
- The release workflow bumped the version in pyproject.toml without
  re-locking, so uv.lock still claimed 1.9.0 while the project was at
  1.9.1. It now runs `uv lock` and commits the result along with it.

To keep this from silently coming back, `make qa` now verifies via
`uv lock --check` that the lockfile matches pyproject.toml. Also refresh
uv.lock, which was still on 1.9.0 from the last release.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F3ADPwk11GHQF7BBwQHaPz
@goloroden
goloroden requested a review from a team as a code owner August 1, 2026 08:38
@goloroden
goloroden merged commit caf6997 into main Aug 1, 2026
4 checks passed
@goloroden
goloroden deleted the chore/dependabot-uv-ecosystem branch August 1, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant